package cn.jimmie.learn.viewArt.weight

import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.widget.LinearLayout

/**
 * function :
 *
 * <p> Create Time: 2019年01月15日 22:22 </p>
 * <p> @author Jimmie.Qian  </p>
 */
class MyLinearLayout(context: Context?, attrs: AttributeSet?) : LinearLayout(context, attrs) {
    override fun onDraw(canvas: Canvas?) {
        println("MyLinearLayout:onDraw")
        super.onDraw(canvas)
    }

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        println("MyLinearLayout:onMeasure")
        super.onMeasure(widthMeasureSpec, heightMeasureSpec)
    }

    override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
        println("MyLinearLayout:onLayout")
        super.onLayout(changed, l, t, r, b)
    }
}